package com.yn.club.auth.application.request;

import java.util.List;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import lombok.Data;


/**
 * 角色权限关联表(AuthRolePermission)表新增，保存类
 *
 * @author YN
 * @since 2025-01-22 17:11:13
 */
@Data
public class AuthRolePermissionSaveRequest {

    private Long id;
    /**
     * 角色id
     */
    @NotNull(message = "角色id不能为空")
    private Long roleId;
    /**
     * 权限id
     */
    private Long permissionId;
    @NotEmpty(message = "权限id不能为空")
    private List<Long> permissionIdList;

}

